<?php
function query($sql){
    $connection=  mysql_connect('localhost','root','vertrigo');
    mysql_select_db('tdc',$connection);
    $dulieu=  mysql_query($sql);
    $data=array();
    while ($row = mysql_fetch_array($dulieu)) {
        $data[]=$row;
        
    }
    return $data;
}
?>
